﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace SignalBox.Core.Model.Timetable
{
    public class EnterLayoutAction : LocationAction
    {
        public override string GetDescription()
        {
            return "Enter at " + (Location == null ? "" : Location);
        }

        public override System.Xml.Linq.XElement ToXml()
        {
            return new XElement("ScheduleAction",
                new XElement("Type", "EnterLayout"),
                new XElement("Location", Location),
                new XElement("Time", Time));
        }
    }
}
